package cn.fzkj.strategy;

/**
 * @DESCRIPTION:
 * @AUTHOR: yaya
 * @DATE: 2021/8/15
 */
public class Test {
    public static void main(String[] args) {
        Duck duck = new RedDuck();
        duck.setFlyBehavior(new NoFly());
        duck.fly();
        duck.display();
        duck.quack();
        duck.swim();
    }
}
